﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ OutputCache  Duration="60" VaryByParam="None"%>
 <%@ Register src="Ctl/CtlTmp.ascx" tagname="CtlTmp" tagprefix="uc2" %>
 <%@ Register src="Ctl/ctlSideShedule.ascx" tagname="ctlSideShedule" tagprefix="uc4" %>
 <link href="Style/OutdoorAgency.css" rel="stylesheet" type="text/css" />            
<%@ Register src="Ctl/ctlEmpCombo.ascx" tagname="ctlEmpCombo" tagprefix="uc1" %>
<%@ Register src="Ctl/ctlPeriodTypeSelector.ascx" tagname="ctlPeriodTypeSelector" tagprefix="uc3" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register   Namespace="Samples"    TagPrefix="uc2" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  
<head runat="server">
    <title></title>
    
    <link href="Style/SplitterWindow.css" rel="stylesheet" type="text/css" />    
    <link href="Style/OutdoorAgency.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="Scripts/jquery.js" type="text/javascript"> </script>                
    <script language="javascript" src="Scripts/Tools.js" type="text/javascript"> </script>            
    
    <style type="text/css" >
    .MyContextMenu 
    {
            z-index:300;	
	        position: absolute;
	        top: 0px;
	        left: 0px;
	        background-color:#ffffdd;
	        border-width:thin;
	        border-style:groove;
	        border-color:Gray;
    }
</style>
</head>







<script type="text/javascript">


    $(document).ready
         (
            
            function() { HideMenu(); }
         );

    function ShowMenu(e) {

        if (e.button != 2)
                            return;

        //Call WebService 
        $(".MyContextMenu").css({ 'left': e.x, 'top': e.y }).show();        
        $(document).one('click', HideMenu);
        

    };
    
    function HideMenu() {
        $(".MyContextMenu").hide();
    };

</script>

<%--oncontextmenu="return false;"--%>
<body >
    
<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">
 <Services>
        <asp:ServiceReference Path="~/ws_Hints.asmx"/>
        <asp:ServiceReference Path="~/ws_SheduleFace.asmx"/>
</Services>
</asp:ScriptManager>

<asp:Button ID="Button3" runat="server" onclick="Button3_Click1" 
    Text="Поиск" />
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>


<asp:UpdatePanel ID="UpdatePanel1" UpdateMode ="Conditional"  runat="server">
</asp:UpdatePanel>


<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate >
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
        <asp:Label ID="Label1" runat="server" Text="Label" Font-Size="XX-Small"></asp:Label>        
        <input id="Button2" type="button" onmousedown="ShowMenu(event);" value="button" />
        
</ContentTemplate>
</asp:UpdatePanel>



 <div class="MyContextMenu "  id="myMenu1">
    <table width ="80px" >
<tr onmouseover ="GrdItemOnMouseOver(this);" onmouseout ="GrdItemOnMouseOut(this);"  onclick ="alert('Hello World');">
    <td style ="width :20px" >    
        <img src="images/add.png" />
    </td>
    <td style ="text-align :left ">    
        Добавить
    </td>
</tr>
<tr onmouseover ="GrdItemOnMouseOver(this);" onmouseout ="GrdItemOnMouseOut(this);"  onclick ="alert('Hello World');">
    <td style ="width :20px" >    
        <img   src="images/trash.png" />
    </td>    
    <td style ="text-align :left; ">    
        Удалить
    </td>
</tr>
    
</table>


</div>


















</form>
</body>
</html>
